$OpenBSD: patch-libfcgi_Makefile_in,v 1.3 2009/10/11 19:47:25 steven Exp $
--- libfcgi/Makefile.in.orig	Sun Jan 19 18:21:18 2003
+++ libfcgi/Makefile.in	Fri May 23 07:12:26 2008
@@ -115,7 +115,7 @@ libfcgi___la_SOURCES = $(INCLUDE_FILES)       \
                        fcgio.cpp
 
 libfcgi___la_CFLAGS = @PTHREAD_CFLAGS@
-libfcgi___la_LDFLAGS = -lfcgi -rpath @libdir@
+libfcgi___la_LDFLAGS = ${LIBfcgi++_LTVERSION} libfcgi.la -rpath @libdir@
 subdir = libfcgi
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_HEADER = $(top_builddir)/fcgi_config.h
@@ -125,7 +125,7 @@ LTLIBRARIES = $(lib_LTLIBRARIES)
 libfcgi___la_LIBADD =
 am_libfcgi___la_OBJECTS = fcgio.lo
 libfcgi___la_OBJECTS = $(am_libfcgi___la_OBJECTS)
-libfcgi_la_LDFLAGS =
+libfcgi_la_LDFLAGS = ${LIBfcgi_LTVERSION}
 libfcgi_la_LIBADD =
 am_libfcgi_la_OBJECTS = libfcgi_la-fcgiapp.lo libfcgi_la-fcgi_stdio.lo \
 	libfcgi_la-os_@SYSTEM@.lo
